<template>
  <div class="footer_Hub">
    <span class="guide_item " :class="{on: '/home'===$route.path}" @click="goTo('/home')">
      <span class="item_icon">
        <i class="iconfont icon-shouye"></i>
      </span>
      <span>首页</span>
    </span>
    <a href="javascript:;" class="guide_item " :class="{on: '/project'===$route.path}"  @click="goTo('/project')">
      <span class="item_icon">
        <i class="iconfont icon-xiangmu"></i>
      </span>
      <span>项目</span>
    </a>
    <a href="javascript:;"  class="guide_item" :class="{on: '/fund'===$route.path,hiddenshow:getOb===0}" @click="goTo('/fund')">
      <span class="item_icon">
        <i class="iconfont icon-zijin"></i>
      </span>
      <span>资金</span>
    </a>
    <a href="javascript:;"  class="guide_item" :class="{on: '/idea'===$route.path,hiddenshow:getOb===1}" @click="goTo('/idea')">
      <span class="item_icon">
        <i class="iconfont icon-chuangye"></i>
      </span>
      <span>创业</span>
    </a>
    <a href="javascript:;" class="guide_item" :class="{on: '/mine'===$route.path}" @click="goTo('/mine')">
      <span class="item_icon">
        <i class="iconfont icon-wode"></i>
      </span>
      <span>我的</span>
    </a>
  </div>
</template>

<script>
  import {mapState} from 'vuex'
  export default {
    data(){

      return{
        ob:0,
      }
    },

    methods: {
      goTo (path) {
        this.$router.replace(path)
      },
      
    },
    computed: {
      getOb(){
        return this.$store.getters.getFundCut
      }
    },
  }
</script>

<style lang="stylus" rel="stylesheet/stylus" scoped>
  @import "../common/stylus/mixins.styl"
  .footer_Hub  //footer
    top-border-1px(#e4e4e4)
    position fixed
    z-index 100
    left 0
    right 0
    bottom 0
    background-color #fff
    width 100%
    height 50px
    display flex
    .guide_item
      display flex
      flex 1
      text-align center
      flex-direction column
      align-items center
      margin 5px
      color #999999
      &.hiddenshow
        display none
      &.on
        color #ff6600
      span
        font-size 12px
        margin-top 2px
        margin-bottom 2px
        .iconfont
          font-size 22px
  a
    text-decoration:none           
</style>